package com.zcah.system.dao;

import com.zcah.system.domain.JwtuserDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * jwt认证用户表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-07-19 11:16:29
 */
@Mapper
public interface JwtuserDao {

	JwtuserDO get(Long id);
	
	List<JwtuserDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(JwtuserDO jwtuser);
	
	int update(JwtuserDO jwtuser);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	@Select("select * from sys_jwtuser where username = #{username}")
	JwtuserDO getUser(String username);
}
